home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / mardek_rpg.swf / scripts / frame_37 / DoAction.as
Encoding:
Text File  |  2011-09-19  |  5.8 KB  |  138 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 2772 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = -842 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 243)
  9.    {
  10.       set("\x01",eval("\x01") + 184);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 427)
  14.    {
  15.       set("\x01",eval("\x01") + 58);
  16.       if(function ┬º\x01\x02┬º()
  17.       {
  18.          return 2772 % 511 * 5;
  19.       })
  20.       {
  21.          set("\x01",eval("\x01") + 267);
  22.       }
  23.    }
  24.    else if(eval("\x01") == 752)
  25.    {
  26.       set("\x01",eval("\x01") - 317);
  27.    }
  28.    else if(eval("\x01") == 334)
  29.    {
  30.       set("\x01",eval("\x01") + 241);
  31.       ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  32.       {
  33.          return 2772 % 511 * 5;
  34.       }));
  35.    }
  36.    else
  37.    {
  38.       if(eval("\x01") == 485)
  39.       {
  40.          set("\x01",eval("\x01") + 267);
  41.          break;
  42.       }
  43.       if(eval("\x01") == 10)
  44.       {
  45.          set("\x01",eval("\x01") + 324);
  46.          ┬º┬ºpush("\x0f");
  47.       }
  48.       else if(eval("\x01") == 575)
  49.       {
  50.          set("\x01",eval("\x01") + 203);
  51.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  52.          {
  53.             return 2772 % 511 * 5;
  54.          });
  55.       }
  56.       else if(eval("\x01") == 702)
  57.       {
  58.          set("\x01",eval("\x01") - 267);
  59.       }
  60.       else if(eval("\x01") == 435)
  61.       {
  62.          set("\x01",eval("\x01") + 346);
  63.          ┬º┬ºpush("\x0f");
  64.          ┬º┬ºpush(1);
  65.       }
  66.       else if(eval("\x01") == 781)
  67.       {
  68.          set("\x01",eval("\x01") - 771);
  69.          var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  70.          {
  71.             return 2772 % 511 * 5;
  72.          };
  73.       }
  74.       else if(eval("\x01") == 778)
  75.       {
  76.          set("\x01",eval("\x01") - 305);
  77.          if(function ┬º\x01\x02┬º()
  78.          {
  79.             return 2772 % 511 * 5;
  80.          })
  81.          {
  82.             set("\x01",eval("\x01") - 404);
  83.          }
  84.       }
  85.       else
  86.       {
  87.          if(eval("\x01") != 473)
  88.          {
  89.             if(eval("\x01") == 69)
  90.             {
  91.                set("\x01",eval("\x01") + 473);
  92.                map = [[3,3,3,2,2,2,2,2,2,2,3,3,3],[3,3,2,0,0,0,0,0,0,0,2,3,3],[3,3,0,0,0,0,0,0,0,0,0,2,3],[3,2,0,0,77,78,79,80,81,0,0,0,3],[3,0,0,0,82,83,84,85,86,0,0,0,3],[3,0,0,0,87,88,89,90,91,0,0,0,3],[3,0,0,0,92,93,94,95,96,0,0,5,3],[3,0,0,0,97,98,99,100,101,0,0,5,3],[3,5,0,0,0,0,0,0,0,0,0,5,3],[3,5,0,0,0,0,0,0,0,0,0,5,3],[3,5,5,0,0,0,0,0,0,0,5,5,3],[3,4,5,5,0,0,0,0,0,0,5,5,3],[3,3,4,5,5,0,0,0,0,5,5,4,3],[3,3,3,4,5,0,0,0,0,4,4,3,3],[3,3,3,3,4,4,0,4,4,3,3,3,3],[3,3,3,3,3,3,0,2,3,3,3,3,3],[3,3,3,3,3,2,0,5,2,3,3,3,3],[3,3,3,3,3,0,0,0,5,2,3,3,3],[3,3,3,3,3,0,0,0,5,5,3,3,3],[3,3,3,3,3,4,0,5,5,4,3,3,3],[3,3,3,3,3,3,0,5,5,3,3,3,3],[3,3,3,3,3,3,5,5,4,3,3,3,3],[3,3,3,3,3,3,5,4,3,3,3,3,3],[3,3,3,3,3,3,5,3,3,3,3,3,3],[3,3,3,3,3,3,5,3,3,3,3,3,3],[3,3,3,3,3,3,5,3,3,3,3,3,3]];
  93.                tileset = "t_rural";
  94.                area = "crashsite";
  95.                areaname = "Crash Site";
  96.                ambience = null;
  97.                ambience = GenericExternalAmbience();
  98.                if(plotVars.SUNSET != null)
  99.                {
  100.                   A_sprites = [{name:"Sign",model:"s_sign",sign:"words",x:6,y:14,walkspeed:-1,conv:[["","GO AWAYYE!!"]]}];
  101.                }
  102.                else
  103.                {
  104.                   A_sprites = [{name:"Manfred",model:"s_man1",x:7,y:13,walkspeed:-1,dir:"w",elem:"DARK",conv:"c_manfred"},{name:"Soldier",model:"s_soldier",x:6,y:1,walkspeed:5,dir:"s",elem:"AIR",conv:[["mad","THIS REMINDS ME OF MY HAT."]]},{name:"Son",model:"s_man2",x:7,y:10,walkspeed:-2,dir:"n",elem:"AIR",conv:[["blah","I hate it when my mum drags me out of my dark, lonely room to see things like this! She says it\'ll be \'interesting\' but it never is!"]]},{name:"Mother",model:"s_woman2",x:8,y:10,walkspeed:-2,dir:"n",elem:"EARTH",conv:[["susp","[[Mother]]This is what you\'ll turn out lookin\' like when you grow up if you don\'t eat more food, son."],["shok","[[Son]]But muuuum! I\'m 35!"]]},{name:"Boy",model:"s_boy",x:2,y:7,walkspeed:-1,dir:"e",elem:"EARTH",conv:[["grin","[[Boy]]Ooh! Ooh! Daddy! Daddy! Can IIII get one of these when I grow up?!"],["smile","[[Man]]No, son! All you can get is a beard, and a good ol\' fashioned beating!"],["sad","[[Boy]]Awww..."]]},{name:"Man",model:"s_common",x:2,y:8,walkspeed:-2,dir:"e",elem:"EARTH",conv:[["grin","My son is such an idiot! Hohoho!"]]},{name:"Young Woman",model:"s_woman",x:10,y:5,walkspeed:100,dir:RDir(),elem:"AIR",conv:[["blah","I travelled all the way from Canonia to see this, AND paid a whole solid gold piece to that shifty guy, but it\'s annoyingly disappointing! I mean, sure, it fell from the heavens, but... so what? How can we USE it? How will ogling it help me in later life? Psht."]]},{name:"WALK_TRIGGER",model:"_trigger",x:6,y:13,ExecuteScript:function()
  105.                   {
  106.                      if(_root.conv._visible)
  107.                      {
  108.                         return undefined;
  109.                      }
  110.                      _root.cont.Manfred.brain.doOnTalk("w");
  111.                      _root.cont.PC.model.gotoAndStop("e1");
  112.                   }}];
  113.                }
  114.                A_sprites.push({name:"Into The Saucer",model:"DOOR_SAUCER",x:6,y:6,lock:"rust",dest:["saucer",2,5]});
  115.                A_sprites.push({name:"S",model:"area_transition",x:6,y:22,dest:["WORLDMAP",1,1]});
  116.                areaLoot = [];
  117.                foes = [];
  118.                btlChance = 0;
  119.                minSteps = 5;
  120.                levelrange = [1,1];
  121.                musicTrack = !plotVars.SUNSET ? "WorldMap" : "crickets";
  122.                clearmap = 1;
  123.                AreaSetup();
  124.                specBtlBG = "CRASHSITE";
  125.                EN_ADD("Places","Crash Site");
  126.                break;
  127.             }
  128.             if(eval("\x01") == 542)
  129.             {
  130.                set("\x01",eval("\x01") - 542);
  131.             }
  132.             break;
  133.          }
  134.          set("\x01",eval("\x01") - 404);
  135.       }
  136.    }
  137. }
  138.